﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zmMoniter
{
    class Deck
    {
        public string sdeckID;
        public string sdamBlock;
        public string sdam;
        public float fminElv;
        public float fmaxElv;
        public bool bOpen;
     
        public Deck(string deckID, string damBlock, string dam)
        {
            sdeckID = deckID;
            sdamBlock=damBlock;
            sdam = dam;
            fminElv = -999999999;
            fmaxElv = -999999999;
            bOpen = false;
        }
        public void setElv(float minElv, float maxElv)
        {
            fminElv = minElv;
            fmaxElv = maxElv;
        }
        public void upDate(string deckID, string damBlock, string dam, float minElv, float maxElv,int deckState)
        {
            sdeckID = deckID;
            sdamBlock = damBlock;
            sdam = dam;
            fminElv = minElv;
            fmaxElv = maxElv;
            if (deckState == 1)
                bOpen = true;
            else
                bOpen = false;
        }
    }
}
